package pile.customer.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import pile.customer.entity.Information;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
import pile.customer.params.frequentlyAskedQuestions.SentMessageDTO;
import pile.customer.params.information.ListDTO;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 郭天义
 * @since 2024-06-03
 */
@Repository
public interface InformationMapper extends BaseMapper<Information> {

    IPage pageList(IPage<Information> iPage, @Param("dto") ListDTO listDTO);

    /**
     * 根据开始时间 结束时间 openid 查询这个人发送消息的数量
     * @param sentMessageDTO
     * @return
     */
    Integer selectTodaySentMessage(@Param("dto") SentMessageDTO sentMessageDTO);
}
